﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DC2010.Objects;

namespace DC2010
{
    public class Resistances : ICloneable
    {
        public Resistances()
        {
            Fire = new CurrentNormal();
            Poison = new CurrentNormal();
            Sharp = new CurrentNormal();
            Blunt = new CurrentNormal();
        }

        /// <summary>
        /// Resistance to magical spells like Fireball. Value 15 means the creature is immune.
        /// </summary>
        public CurrentNormal Fire;

        /// <summary>
        /// Resistance to magical spells involving poison. Value 15 means the creature is immune.
        /// </summary>
        public CurrentNormal Poison;

        /// <summary>
        /// Resistance to attacks by sharp weapons. Low for muscly monsters, high for skeletony monsters
        /// </summary>
        public CurrentNormal Sharp;

        /// <summary>
        /// Resistance to attacks by blunt weapons. Low for skeletons monsters, High for muscly monsters
        /// </summary>
        public CurrentNormal Blunt;

        #region ICloneable Members

        public object Clone()
        {
            Resistances r = new Resistances();
            r.Fire = (CurrentNormal)Fire.Clone();
            r.Poison = (CurrentNormal)Poison.Clone();
            r.Sharp = (CurrentNormal)Sharp.Clone();
            r.Blunt = (CurrentNormal)Blunt.Clone();

            return r;
        }

        #endregion
    }
}
